<?php

use yii\helpers\Html;
use yii\grid\GridView;

/* @var $this yii\web\View */
/* @var $dataProvider yii\data\ActiveDataProvider */

$this->title = 'Current Toilets';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="current-toilet-index">

    <h1><?= Html::encode($this->title) ?></h1>

    <p>
        <?= Html::a('新建一个卫生间', ['create'], ['class' => 'btn btn-success']) ?>
    </p>

    <?= GridView::widget([
        'dataProvider' => $dataProvider,
        'columns' => [
            ['class' => 'yii\grid\SerialColumn'],

            'id',
            't_id',
            'tem',
            'hum',
            'gas',
            //'seats',
            //'unuse',
            //'all',
            //'flow',
            //'time',
            //'status',

            ['class' => 'yii\grid\ActionColumn'],
        ],
    ]); ?>
</div>
